/*
 * @Author: 胡伟 3247249228@qq.com
 * @Date: 2022-06-29 14:21:25
 * @LastEditors: 胡伟 3247249228@qq.com
 * @LastEditTime: 2022-07-24 10:24:14
 * @FilePath: \first-project\project\vue.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/api': {
        target: 'https://jk.huwei6.com/api', //
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          //重写路径
          '^/api': ''
        }
      },
      '/pdf': {
        target: 'https://huwei-1312277086.cos.ap-nanjing.myqcloud.com/',
        changOrigin: true,
        pathRewrite: {
          '^/pdf': ''
        }
      }
    }
  }
})
